import request from '@/utils/request'

export const findAllName = () =>
  request({
    url: `/gwreal/findAllName`,
    method: 'get'
  })

export const getChartData = (id, data) =>
  request({
    url: `/HistoryData/chartData/?id=${id}`,
    method: 'post',
    data
  })

export const getDayChartData = (id, data) =>
  request({
    url: `/HistoryData/dayChartData/?id=${id}`,
    method: 'post',
    data
  })

export const getMonChartData = (id, data) =>
  request({
    url: `/HistoryData/monChartData/?id=${id}`,
    method: 'post',
    data
  })